<?php

declare (strict_types=1);

namespace app\common\model;

use cores\BaseModel;

/**
 * 渠道来源模型
 * Class Grade
 * @package app\common\model
 */
class Channel extends BaseModel
{
    // 定义表名
    protected $name = 'channel';

    // 定义主键
    protected $pk = 'id';

    /**
     * 获取全部记录
     * @return \think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getAll()
    {
        return $this->select();
    }
}
